<?php
namespace voxfa\guard\core;

class Permission {
	
	const ALLOW = 1;
	const DENY = 0;
	
	protected $credentialId;
	protected $resourceId;
	protected $mod;
	
	/**
	 * @return the $credentialId
	 */
	public function getCredentialId() {
		return $this->credentialId;
	}

	/**
	 * @return the $resourceId
	 */
	public function getResourceId() {
		return $this->resourceId;
	}

	/**
	 * @return the $mod
	 */
	public function getMod() {
		return $this->mod;
	}

	/**
	 * @param $credentialId the $credentialId to set
	 */
	public function setCredentialId($credentialId) {
		$this->credentialId = $credentialId;
	}

	/**
	 * @param $resourceId the $resourceId to set
	 */
	public function setResourceId($resourceId) {
		$this->resourceId = $resourceId;
	}

	/**
	 * @param $mod the $mod to set
	 */
	public function setMod($mod) {
		$this->mod = $mod;
	}

	public function save(){
		
	}
	
	public function delete(){
		
	}
}